package com.pccw.service.acrm;

import java.net.MalformedURLException;
import java.net.URL;
import java.util.List;

import com.acrm.client.exception.ServerThrowException;
import com.pccw.acrm.entity.UserInfo;
import com.pccw.hessian.support.cache.CachePolicy;
import com.pccw.hessian.support.client.TaskExecuteListener;

public interface AcrmApi {
	int login(String username,String password);
	
	void login(String username,String password,TaskExecuteListener listener);
	boolean logout();
	List<String> getContacts() throws ServerThrowException;
	void getContacts(TaskExecuteListener listener);
	boolean addContact(String name);
	boolean uglilyCode(String name);
	URL getNewSoftUrl(String url) throws MalformedURLException ;
	UserInfo getUserInfo();
	Boolean saveUserInfo(UserInfo info);
	Boolean saveUserInfo(UserInfo info,TaskExecuteListener listener);

}
